package com.facade.pattern.service;

import com.facade.pattern.service.impl.Circle;
import com.facade.pattern.service.impl.Rectangle;
import com.facade.pattern.service.impl.Square;

/**
 * @author chenchen
 * @description 外观类
 * @date 2023/11/14 13:59
 */
public class Facade {

    private final Shape circle;
    private final Shape rectangle;
    private final Shape square;

    public Facade() {
        circle = new Circle();
        rectangle = new Rectangle();
        square = new Square();
    }

    public void draw() {
        circle.draw();
        rectangle.draw();
        square.draw();
    }

}
